﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class InventoryAlarmItemConfig : EntityTypeConfigBase<InventoryAlarmItem>
	{
		public InventoryAlarmItemConfig()
		{
			Property(iai => iai.HospitalId)
				.IsRequired()
				.HasMaxLength(32);

			Property(iai => iai.ProductId)
				.IsRequired()
				.HasMaxLength(32);

			Property(iai => iai.ProductBarcode)
				.HasMaxLength(50);

			Property(iai => iai.ProductName)
				.HasMaxLength(50);

			Property(iai => iai.Detail)
				.HasMaxLength(255);

		}
	}
}
